const express    = require('express');
const bodyParser = require('body-parser');
const router     = require('../router/router');
const app        = express();
app.use(bodyParser.urlencoded({ extended: true }));
app.use(bodyParser.json());
app.use(bodyParser.raw());

router(app);

let server = app.listen(80, function () {
    let host = server.address().address;
    let port = server.address().port;
    console.log("Server started.. http://%s:%s", host, port)
});

